#include "../a.h"
int main(int argc, char const *argv[])
{
	vector<int> v;
	int in;
	while(cin>>in){
		v.push_back(in);
	}

	int sum=v[0];
	int min=v[0];
	int max=v[0];

	for(int i=1;i<v.size();i++){
		if(min>v[i]){
			min=v[i];
		}
		if(max<v[i]){
			max=v[i];
		}
		sum+=v[i];
	}

	cout<<"max:"<<max<<endl
	<<"min:"<<min<<endl
	<<"sum:"<<sum<<endl;

	return 0;
}